home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / UPC12BS1.ZIP / LIB / ACTIVE.H < prev    next >
C/C++ Source or Header  |  1993-04-14  |  1KB  |  25 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    a c t i v e . h                                                 */
  3. /*                                                                    */
  4. /*    Structures and function prototypes for active file              */
  5. /*    processing in UUPC/extended.  Written by Mike Lipsie            */
  6. /*--------------------------------------------------------------------*/
  7.  
  8. struct grp {
  9.    struct grp *grp_next;   /* Next group */
  10.    char *grp_name;      /* Group name -- "ba.food" for example */
  11.    long   grp_high;  /* Number for next article to be stored */
  12.    long   grp_low;       /* Lowest numbered article not expired */
  13.    char  grp_can_post;
  14.    };
  15.  
  16. extern struct grp *group_list;   /* List of all groups */
  17.  
  18. void get_active(void);     /* Read in the active newsgroups file */
  19. void put_active(void);     /* Write the active newsgroups file */
  20. void validate_newsgroups(void);  /* Make sure the directory structure exists */
  21.  
  22. #ifndef MAXGRP
  23. #define MAXGRP FILENAME_MAX   /* Max length of a news group name     */
  24. #endif
  25.